# 安装JSON-PATH
# PS E:\reptile-python> pip install jsonpath
# Collecting jsonpath
#   WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeou
# t=15)")': /packages/5f/c0/b54189dfe62f1a93ba294ab53508a81d440fc63adff253db369f557a996a/jsonpath-0.82.tar.gz
#   Downloading jsonpath-0.82.tar.gz (9.6 kB)
#   Preparing metadata (setup.py) ... done
# Using legacy 'setup.py install' for jsonpath, since package 'wheel' is not installed.
# Installing collected packages: jsonpath
#   Running setup.py install for jsonpath ... done
# Successfully installed jsonpath-0.82
# PS E:\reptile-python>


# 读取本地json文件
import json

Map = json.load(open(file='path', mode='r', encoding='UTF-8'))

